import { useRoutes } from 'react-router-dom'
import Home from '../views/Home'
import More from '../views/More'
import Detail from '../views/Detail'
import Music from '../views/Music'
const RouterView = () => {
    const routes = useRoutes([
        {
            path: '/',
            element: <Home />,
        },
        {
            path: '/more',
            element: <More />
        },
        {
            path: '/detail/:id',
            element: <Detail />
        },
        {
            path: 'music/:id',
            element: <Music />
        }
    ])
    return routes
}
export default RouterView